 /*eslint-disable */
import tpl from '!!file-loader?name=templates/[name].[ext]!./pages/async-page-example/async.html';

function routeConfig($urlRouterProvider, $stateProvider, resolverProvider) {
  'ngInject';

  $stateProvider
    .state('async', {
      url: '/async',
      templateUrl: tpl,
      controller: 'asyncController',
      resolve: {
        asyncPreloading: resolverProvider.asyncPagePrealoading
      }
    });

  $urlRouterProvider.otherwise('/');
}

export default angular
  .module('index.routes', [])
    .config(routeConfig);

